package com.example.myapplication.DesignPatterns.adapterPatterns;

import android.widget.Toast;

import com.example.myapplication.thirdcamera.util.Log;

public class MulPlay implements MulPlayer {

    MulPlayer mulPlayer;

    @Override
    public void play(String format, String filename) {
        if ("MP4".equalsIgnoreCase(format) ||"AVI".equalsIgnoreCase(format)) {
            mulPlayer = new AdapterPlay(format);
            mulPlayer.play(format, filename);
        } else {
            Log.i("dove","系统暂不支持该类型文件的播放！！！");
        }
    }
}
